import BasicLayout from './../layout/BasicLayoutNew.vue'
export default [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/aaa',
    component: BasicLayout,
    redirect: '/projectService/spaceManage',
    children: [
      {
        path: '/projectService',
        name: 'projectService',
        redirect: '/projectService/spaceManage',
        component: { render: (h) => h('router-view') },
        meta: { title: '项目服务开通', icon: 'home' },
        rootMenu: false,
        children: [
          {
            path: '/projectService/spaceManage',
            name: 'spaceManage',
            component: () => import('./../views/projectService/spaceManage.vue'),

            meta: { title: '空间管理', icon: 'user' }
          },
          {
            path: '/projectService/spaceAllocation',
            name: 'spaceAllocation',
            component: () => import('./../views/projectService/spaceAllocation/spaceAllocation.vue'),
            hiddenMenu: true,
            meta: { title: '空间配置', icon: 'user' }
          },
          {
            path: '/projectService/accountConfig',
            name: 'accountConfig',
            component: () => import('./../views/projectService/accountConfig/accountConfig.vue'),
            hiddenMenu: true,
            meta: { title: '账号配置', icon: 'user' }
          },
        ]
      },
      {
        path: '/publicContentManagement',
        name: 'publicContentManagement',
        redirect: '/publicContentManagement/columnManagement',
        component: { render: (h) => h('router-view') },
        meta: { title: '公共内容管理', icon: 'schedule' },
        rootMenu: false,
        children: [
          {
            path: '/publicContentManagement/columnManagement',
            name: 'columnManagement',
            component: () => import('./../views/publicContentManagement/columnManagement'),
            meta: { title: '栏目管理', icon: 'user' }
          },
          {
            path: '/publicContentManagement/auditList',
            name: 'auditList',
            component: () => import('./../views/publicContentManagement/auditList'),
            meta: { title: '审核列表', icon: 'user' }
          },
          {
            path: '/publicContentManagement/contentManage',
            name: 'contentManage',
            component: () => import('./../views/publicContentManagement/contentManage'),
            meta: { title: '内容管理', icon: 'user' }
          },
        ]
      },
      {
        path: '/userManage',
        name: 'userManage',
        redirect: '/userManage/userManagePage',
        component: { render: (h) => h('router-view') },
        meta: { title: '用户管理', icon: 'schedule' },
        rootMenu: false,
        children: [
          {
            path: '/userManage/userManagePage',
            name: 'userManagePage',
            component: () => import('./../views/userManage/userManage'),
            meta: { title: '用户管理', icon: 'user' }
          },
          {
            path: '/userManage/rolePromission',
            name: 'rolePromission',
            component: () => import('./../views/userManage/rolePromission'),
            meta: { title: '角色权限控制', icon: 'user' }
          }
        ]
      },
    ]
  },

  {
    path: '/login',
    component: () => import('@/views/login/index')
  }
]
